package cn.yo2.irain.log4money.app.user;

import cn.yo2.irain.log4money.app.item.Item;

import java.util.Date;
import java.util.Set;

public class UserLogin implements java.io.Serializable {


    // Fields    

    private String id;
    private String loginName;
    private String trueName;
    private String nickName;
    private String password;
    private String email;
    private Date birthday;
    private String sex;
    private String address;
    private String portrait;
    private Date crtime;
    private String cruser;
    private String mobilePhone;

    private Set<Item> items;

    // Constructors

    /**
     * default constructor
     */
    public UserLogin() {
    }


    /**
     * full constructor
     */
    public UserLogin(String loginName, String trueName, String nickName, String password, String email, Date birthday, String sex, String address, String portrait, Date crtime, String cruser, String mobilePhone, Set items) {
        this.loginName = loginName;
        this.trueName = trueName;
        this.nickName = nickName;
        this.password = password;
        this.email = email;
        this.birthday = birthday;
        this.sex = sex;
        this.address = address;
        this.portrait = portrait;
        this.crtime = crtime;
        this.cruser = cruser;
        this.mobilePhone = mobilePhone;

        this.items = items;
    }


    // Property accessors

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLoginName() {
        return this.loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getTrueName() {
        return this.trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public String getNickName() {
        return this.nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getBirthday() {
        return this.birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return this.sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPortrait() {
        return this.portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    public Date getCrtime() {
        return this.crtime;
    }

    public void setCrtime(Date crtime) {
        this.crtime = crtime;
    }

    public String getCruser() {
        return this.cruser;
    }

    public void setCruser(String cruser) {
        this.cruser = cruser;
    }

    public Set getItems() {
        return items;
    }

    public void setItems(Set items) {
        this.items = items;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }
}